package org.xxpay.core.service;

import com.alibaba.fastjson.JSONObject;
import org.xxpay.core.entity.MchAccountHistory;
import org.xxpay.core.entity.PayOrder;

/**
 * @author: dingzhiwei
 * @date: 2018/5/29
 * @description:
 */
public interface IXxPayNotifyService {

	/**
	 * 发送支付订单通知
	 * @param payOrderId
	 */
	void executePayNotify(String payOrderId);

	/**
	 * 手动发送支付订单通知
	 * @param payOrder
	 * @param notifyUrl
	 */
	JSONObject manualPayNotify(PayOrder payOrder, String notifyUrl);

	/**
	 * 发送充值订单成功统计通知
	 * @param mchAccountHistory
	 */
	void sendRechargeStatisticsSuccess(MchAccountHistory mchAccountHistory, Byte rechargeType);

    void sendPayStatistics(String payOrderId, Long diffAmount);
}
